package com.oocl.o2o.admin.dao;

import java.util.List;

import com.oocl.o2o.admin.entity.ComplaintInfo;
import com.oocl.o2o.admin.entity.Merchant;

public interface ComplaintInfoDao {

	/**
	 * 
	 * @param id
	 * @return
	 */
	public ComplaintInfo findById(String id);
	
	
	
	/**
	 * 
	 * @return
	 */
	public List<ComplaintInfo> findAll();
	
	/**
	 * 
	 * @param merchantId
	 * @return
	 */
	public List<ComplaintInfo> findByMerchantId(String merchantId);
	

	/**
	 * 
	 * @param complaintInfo
	 * @return
	 */
	public ComplaintInfo add(ComplaintInfo complaintInfo);
	
	/**
	 * 
	 * @return
	 */
	public List<Merchant> findAllByMerchant();
}
